package com.zicheng.thread.demo;

/**
 * 以继承Thread的方式去尝试开启一个线程
 *
 * @author wzy
 */
public class DemoTaskOne extends Thread {

    public void sayYes() {
        System.out.println("yes,demoTask1 is running");
    }

    @Override
    public void run() {
        sayYes();
    }
}
